package threadLocalTest;

/**
 * todo
 *
 * @author: luolidong
 * @create: 2021-07-11 17:45
 * @version: 1.0
 */
public class Test1 {
//    public static void play(){
//        for (int i = 0; i <100000 ; i++) {
//
//        }
//        System.out.println("Profiler.end() = " + Profiler.end());
//    }

    public static void main(String[] args) {
        for (int i = 0; i <10 ; i++) {
            int finalI = i;
            new Thread(()->{
//                Profiler.start();
                long l = System.currentTimeMillis();
//                try {
////                    Thread.sleep(finalI);
//                } catch (InterruptedException e) {
//                    e.printStackTrace();
//                }
                System.out.println(Thread.currentThread().getName()+(System.currentTimeMillis()-l));
//                System.out.println(Thread.currentThread().getName()+Profiler.end());
            },finalI+":").start();
        }
    }
}
